#ifndef OPERATOR_H
#define OPERATOR_H

#include <QObject>

#define OperatorInterfaceiid "Caoliang.Operator"

class Operator
{
public:
    virtual ~Operator() {}
    virtual QString name() const = 0;
    virtual qreal Execute(qreal a,qreal b) = 0;
};

Q_DECLARE_INTERFACE(Operator,OperatorInterfaceiid)

#endif // OPERATOR_H
